package com.domain.req;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 订单修改请求
 */
@Data
public class IndentUpdateReq implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空！")
    private Integer id;

    /**
     * 商品数量
     */
    @NotNull(message = "商品数量不能为空！")
    @Min(value = 1, message = "商品数量必须大于1！")
    private Integer num;

    /**
     * 订单金额
     */
    @NotNull(message = "订单金额不能为空!")
    @Min(value = 0, message = "订单金额必须大于零!")
    private Double money;
}
